﻿@model IEnumerable<TicketingCompany.Models.Category>

@{
    ViewBag.Title = "SelectCategory";
}

<h2>SelectCategory</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            Name
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("View Events For This Category", "../Offers/ByCategory", new { CategoryID = item.CategoryID })            
        </td>
        <td>
            @item.Name
        </td>
    </tr>
}

</table>

